/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Model;

import Items.Item;
import java.util.EventObject;

/**
 *
 * @author Snowangelic
 */
public class ItemDroppedEvent extends EventObject {
    int xIndex;
    int yIndex;

    public ItemDroppedEvent(Item source,int xIndex,int yIndex){
        super(source);
        this.xIndex=xIndex;
        this.yIndex=yIndex;
    }

    @Override
    public Item getSource(){
        return (Item) super.getSource();
    }

    public int getXIndex(){
        return xIndex;
    }

    public int getYIndex(){
        return yIndex;
    }
}
